import { Component, OnInit } from '@angular/core';
import {TopbarserveService} from "../topbar/topbarserve.service";
import { Response } from '@angular/http';

@Component({
  selector: 'app-foot',
  templateUrl: './foot.component.html',
  styleUrls: ['./foot.component.less']
})
export class FootComponent implements OnInit {
  footer;
  constructor(private topbarService: TopbarserveService) { }

  ngOnInit() {
    this.topbarService.getServe().subscribe(
      (response: Response) => {
        const data = response.json();
        this.footer = data.data.right.bottomMenu;
        // console.log(this.footer);
      }
    );
  }

}
